package classes
{
	public class Category implements WritableObject
	{
		public var id:int = -1;
		public var name:String = "";
		
		public function Category(name:String = "")
		{
			this.name = name;
		}
		
		public function parseCategoryString(raw:XML):void{
			this.id = raw.@id;
			this.name = raw.@name;
		}
		
		public function toWritableString():String{
			return "<category id=\"" + this.id + "\" name=\"" + this.name + "\"/>";
		}

	}
}